﻿<Window x:Class="WpfApplication.View.MainWindowView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="170" Width="400">
    <Grid>
        <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="12,12,0,0"
                   Text="First name" />
        <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="12,52,0,0"
                   Text="Last name" />

        <TextBox HorizontalAlignment="Left" VerticalAlignment="Top" Margin="90,9,0,0" Width="120"
                 Text="{Binding Path=People.FirstName, Mode=TwoWay}" />
        <TextBox HorizontalAlignment="Left" VerticalAlignment="Top" Margin="90,49,0,0" Width="120"
                 Text="{Binding Path=People.LastName, Mode=TwoWay}" />

        <TextBox HorizontalAlignment="Left" VerticalAlignment="Top" Margin="246,9,0,0" Width="120"
                 Text="{Binding Path=People.FirstName, Mode=TwoWay}" IsReadOnly="True" />
        <TextBox HorizontalAlignment="Left" VerticalAlignment="Top" Margin="246,49,0,0" Width="120"
                 Text="{Binding Path=People.LastName, Mode=TwoWay}" IsReadOnly="True" />

        <Button Content="Click me" HorizontalAlignment="Left" Margin="291,97,0,0" VerticalAlignment="Top" Width="75"
                Command="{Binding ClickCommand}" />
    </Grid>
</Window>